<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Account_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-account_id" data-rule="required" data-source='{$account}' data-order-by="mobile_serial" class="form-control selectpage" name="row[account_id]" type="text" value="{$row.account_id}" placeholder="请选择账号">
            <p class="text-red">邮箱-手机编号格式选项, 被占用的手机编号不显示, 没有选择项则手机编号都被占用了</p>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Video_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-video_name" class="form-control" name="row[video_name]" type="text" value="{$row.video_name|htmlentities}"  placeholder="若没有可留空">
        </div>
    </div>
    {if $row.type == 1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Deduct_points')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-deduct_points" class="form-control" step="0.01" name="row[deduct_points]" type="number" value="{$row.deduct_points|htmlentities}" placeholder="若没有可留空, 有则填数字即可">
        </div>
    </div>
   
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('粉丝数')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fans" class="form-control" name="row[fans]" type="number" value="{$row.fans|htmlentities}" placeholder="若没有可留空, 有则填数字即可">
        </div>
    </div>
    {/if}
   
    {if $row.type == 2}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Turnover')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-turnover" class="form-control" name="row[turnover]" type="number" value="{$row.turnover|htmlentities}" placeholder="若没有可留空, 有则填数字即可">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-amount" class="form-control" step="0.01" name="row[amount]" type="number" value="{$row.amount|htmlentities}" placeholder="若没有可留空, 有则填数字即可">
        </div>
    </div>
    {/if}

    {if $row.type == 3}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('视频佣金')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-amount" class="form-control" step="0.01" name="row[amount]" type="number" value="{$row.amount|htmlentities}" placeholder="若没有可留空, 有则填数字即可">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('违规数量')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-violent_num" class="form-control" name="row[violent_num]" type="number" value="{$row.violent_num|htmlentities}" placeholder="若没有可留空, 有则填数字即可">
        </div>
    </div>
    {/if}

     <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Volume')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-volume" class="form-control" name="row[volume]" type="number" value="{$row.volume|htmlentities}" placeholder="若没有可留空, 有则填数字即可">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Play_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-play_num_str" class="form-control" name="row[play_num_str]" type="text" value="{$row.play_num_str|htmlentities}" placeholder="若没有可留空, 有则填数字即可">
            <p class="text-red">使用"-"隔开</p>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('日期')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-date" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[date]" type="text" value="{$row.date}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
